package smetana.domain.filter;

/**
 *
 * @author dmitry.mamonov
 */
public class PositionReportFilter {
    Integer productGroupIdFilter;
    String productNameFilter;

    public PositionReportFilter() {
        super();
    }

    public PositionReportFilter(Integer productGroupIdFilter, String productNameFilter) {
        this.productGroupIdFilter = productGroupIdFilter;
        this.productNameFilter = productNameFilter;
    }

    public Integer getProductGroupIdFilter() {
        return productGroupIdFilter;
    }

    public void setProductGroupIdFilter(Integer productGroupIdFilter) {
        this.productGroupIdFilter = productGroupIdFilter;
    }

    public String getProductNameFilter() {
        return productNameFilter;
    }

    public void setProductNameFilter(String productNameFilter) {
        this.productNameFilter = productNameFilter;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final PositionReportFilter other = (PositionReportFilter) obj;
        if (this.productGroupIdFilter != other.productGroupIdFilter && (this.productGroupIdFilter == null || !this.productGroupIdFilter.equals(other.productGroupIdFilter))) {
            return false;
        }
        if ((this.productNameFilter == null) ? (other.productNameFilter != null) : !this.productNameFilter.equals(other.productNameFilter)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 83 * hash + (this.productGroupIdFilter != null ? this.productGroupIdFilter.hashCode() : 0);
        hash = 83 * hash + (this.productNameFilter != null ? this.productNameFilter.hashCode() : 0);
        return hash;
    }
}
